package com.seari.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.seari.bean.BaseTaskBean;
import com.seari.mapper.BaseTaskMapper;
import com.seari.service.BaseTaskService;

@Service("baseTaskService")
public class BaseTaskServiceImpl implements BaseTaskService
{

	@Autowired
	public BaseTaskMapper baseTaskMapper;
	
	@Override
	public List<BaseTaskBean> getBaseTask() {
		return baseTaskMapper.getBaseTaskList();
	}

	@Override
	public int addTimTask(BaseTaskBean taskBean) {
		return baseTaskMapper.addTimTask(taskBean);
	}

	@Override
	public int deleteTimTask(List<Integer> taskNames) {
		return baseTaskMapper.deleteTimTask(taskNames);
	}

	@Override
	public List<BaseTaskBean> seachBaseTask(String taskName) {
		return baseTaskMapper.seachBaseTask(taskName);
	}

	@Override
	public int updateTimTask(BaseTaskBean taskBean) {
		return baseTaskMapper.updateTimTask(taskBean);
	}

	@Override
	public List<BaseTaskBean> getBaseTaskByIds(List<Integer> idsList) {
		return baseTaskMapper.getBaseTaskByIds(idsList);
	}


}
